﻿using HiSport.Core.Enum;
using HiSportApplet.Core.Entity;
using HiSportApplet.Core.Enum;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HiSport.Core.Entity.Order
{
    /// <summary>
    /// 固定场地 预定订单子表
    /// </summary>
    [SugarTable(null, "固定场地 预定订单子表")]
    public class OrderFixeSiteInfo:EntityBase
    {
        /// <summary>
        /// 主订单ID
        /// </summary>
        [SugarColumn(ColumnDescription = "主订单ID", DefaultValue = "0", IsNullable = false)]
        public long OrderFixeSiteId { get; set; }

        /// <summary>
        /// 场地
        /// </summary>
        [SugarColumn(ColumnDescription = "场地", DefaultValue = "0", IsNullable = false)]
        public long SiteId { get; set; }

        /// <summary>
        /// 固定场地预约时间  
        /// </summary>
        [SugarColumn(ColumnDescription = "固定场地预约时间", IsNullable = false)]
        public DateTime FixeSiteScheduledTime { get; set; }

        /// <summary>
        /// 开始
        /// </summary>
        [SugarColumn(ColumnDescription = "开始", DefaultValue = "", IsNullable = false)]
        [MaxLength(10)]
        public string StartTime { get; set; }

        /// <summary>
        /// 结束
        /// </summary>
        [SugarColumn(ColumnDescription = "结束", DefaultValue = "", IsNullable = false)]
        [MaxLength(10)]
        public string EndTime { get; set; }

        /// <summary>
        /// 订单总金额
        /// </summary>
        [SugarColumn(ColumnDescription = "订单总金额", DefaultValue = "0", ColumnDataType = "decimal(18,2)", IsNullable = false)]
        public decimal TotalAmount { get; set; }

        /// <summary>
        /// 优惠金额
        /// </summary>
        [SugarColumn(ColumnDescription = "优惠金额", DefaultValue = "0", ColumnDataType = "decimal(18,2)", IsNullable = false)]
        public decimal DiscountAmount { get; set; }


        /// <summary>
        /// 实付金额
        /// </summary>
        [SugarColumn(ColumnDescription = "实付金额", DefaultValue = "0", ColumnDataType = "decimal(18,2)", IsNullable = false)]
        public decimal ActualPayAmount { get; set; }


        /// <summary>
        /// 支付方式
        /// </summary>
        [SugarColumn(ColumnDescription = "支付方式", DefaultValue = "0", IsNullable = false)]
        public PayTypeEnum PayType { get; set; }

        /// <summary>
        /// 支付状态
        /// </summary>
        [SugarColumn(ColumnDescription = "支付状态", DefaultValue = "0", IsNullable = false)]
        public OrderPayStateEnum OrderPayState { get; set; }

        /// <summary>
        /// 订单状态
        /// </summary>
        [SugarColumn(ColumnDescription = "订单状态", DefaultValue = "1", IsNullable = false)]
        public OrderStateEnum OrderState { get; set; }

        /// <summary>
        /// 预定状态
        /// </summary>
        [SugarColumn(ColumnDescription = "预定状态", DefaultValue = "0", IsNullable = false)]
        public ScheduledSiteStateEnum ScheduledSiteState { get; set; }


    }
}
